﻿
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Threading; 
 
using Net.http;
using Print.printServer;

namespace GK.WCS.Open
{
    ///Print/code
    [RoutePrefix("zps")]
    public class ZebraPrinterServer : BaseApiController {
        [HttpGet, Route("d2/{code}")]
        public String code(int code)
        {
            QRCodePrinter mpd=new QRCodePrinter();
            mpd.print(code);

            return "ok";

        }



        [HttpGet, Route("d1/{code}")]
        public String code1(int code) {
            Code128Printer mpd = new Code128Printer();
            mpd.print(code);

            return "ok";

        }
        [HttpGet, Route("d75/{code}")]
        public String code75(String code) {
            for (int i = 20; i <21; i++) {

                String c = "E"+((1000 + i) + "").Substring(1);
                new QR75CodePrinter().print(c);

                Thread.Sleep(2000);
               // new QR75CodePrinter().print(c);

                Thread.Sleep(2000);
               // new QR75CodePrinter().print(c); 
                Thread.Sleep(2000);
              //  new QR75CodePrinter().print(c); 
                Thread.Sleep(2000);
            }

            return "ok";

        }

     


    }
}
